<?php

require_once('Zend/Controller/Plugin/Abstract.php');

class Default_Controllers_Plugin_Loader extends Zend_Controller_Plugin_Abstract
{
    public function preDispatch(Zend_Controller_Request_Abstract $request)
    {
        $moduleName = $request->getModuleName();
        set_include_path(get_include_path() .
        PATH_SEPARATOR . APPLICATION_PATH . '/modules/' . $moduleName . '/models/');
    }
}
